package com.wangjiyuan.giftshuo.ui.fragment.listtop.message;


/**
 * Created by ZangSyeriong on 2016/11/16.
 *
 * 网络接口
 */

public class UrlMessage {

    //每日推荐接口
    //http://api.liwushuo.com/v2/ranks_v2/ranks/1?limit=20&offset=0

    //TOP100的接口
    //http://api.liwushuo.com/v2/ranks_v2/ranks/2?limit=20&offset=0

    //可能喜欢的
    //http://api.liwushuo.com/v2/items/1070735/recommend?num=20&post_num=5
    //http://api.liwushuo.com/v2/items/1075100/recommend?num=20&post_num=5

    //评论区接口
    //http://api.liwushuo.com/v2/items/1069729/comments?limit=20&offset=0

    //单品页面的接口
    //http://api.liwushuo.com/v2/items/1075793

    public static final String EVERYDAY_BASE_URL = "http://api.liwushuo.com/";

    public static class Path{
        //每日推荐的Path
        public static final String EVERYDAY_PATH_URL = "v2/ranks_v2/ranks/{path}?limit=30&offset=0";
        //点进每个产品之后里面可能喜欢和推荐精品的Path
        public static final String RECOMMEND_PATH_URL = "v2/items/{path}/recommend?num=20&post_num=5";
        //榜单评论区的Path
        public static final String COMMEND_PATH_URL = "v2/items/{path}/comments?limit=20&offset=0";

        public static final String SINGLEPRODUCT_PATH_URL = "v2/items/{path}";
    }

    public static class Params{
        public static final String LIMIT = "LIMIT";
        public static final String OFFSET = "OFFSET";

        public static final String NUM = "NUM";
        public static final String POST_NUM = "POST_NUM";
    }

    public static class DefaultParams{
        public static final String LIMIT = "30";
        public static final String OFFSET = "0";

        public static final String NUM = "20";
        public static final String POST_NUM = "5";
    }
}
